package com.huiyeji.hui.service;

import com.huiyeji.hui.entity.UserUserRelation;

import java.util.List;

/**
 * @author zhaoduo
 */
public interface UserRelationService {

    /**
     * 得到源用户所有关联用户的id
     * @param uid 源用户id
     * @return list
     */
    List<Long> getUserRelationUserIds(Long uid);

    /**
     * 删除好友
     * @param uid uid
     * @param fid fid
     */
    void deleteFriend(Long uid, Long fid);

    /**
     * 特别关心好友(将之前特别关心的好友设置为普通好友)
     * @param uid uid
     * @param fid fid
     */
    void careFriend(Long uid, Long fid);

    /**
     * 拉黑好友
     * @param uid uid
     * @param fid fid
     */
    void putFriendIntoBlackList(Long uid, Long fid);

    /**
     * 修改好友备注
     * @param uid yid
     * @param oid oid
     * @param remark remark
     */
    void changeRemark(Long uid, Long oid, String remark);

    /**
     * 恢复正常好友关系
     * @param uid uid
     * @param oid oid
     */
    void recoverNormalRelation(Long uid, Long oid);

    /**
     * 新增关系数据
     * @param relation UserUserRelation
     */
    void addRelation(UserUserRelation relation);
}
